<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function setPageMode($ugroup) {
    switch ($ugroup)
    {
        case 1: 	//--------------Check admin dtddt-----------
            header('Location: '.baseUrl().'/home');
            break;
        case 2: 	//--------Check user tbs_product-----------
            header('Location: '.baseUrl().'/employment');
            break;
        case 3: 	//--------Check user tbs_product-----------
            header('Location: '.baseUrl().'/contact-list');
            break;
        case 4:
            header('Location: '.baseUrl().'/support');
            break;
        case 5:
            header('Location: ' . baseUrl() . '/aboutus');
            //Default: 	//--------Check user tbs_product-----------
                //header('Location: '.$baseUrl.'/home');
                //break;
    }
}
